package com.laf.manager.service.impl;

import com.laf.manager.controller.dto.MemberCarDto;
import com.laf.manager.controller.dto.PointsDeductionDto;
import com.laf.manager.querycondition.MemberCarQueryCondition;
import com.laf.manager.repository.MemberCarRepository;
import com.laf.manager.service.MemberCarService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ygl
 * @create 2018-12-26
 * @DESCRIPTION
 **/
@Service
@Slf4j
public class MemberCarServiceImpl implements MemberCarService {

    @Autowired
    private MemberCarRepository memberCarRepository;

    @Override
    public List<MemberCarDto> getList(MemberCarQueryCondition condition) {
        return memberCarRepository.getList(condition);
    }

    @Override
    public int getCountList(MemberCarQueryCondition condition) {
        return memberCarRepository.getCountList(condition);
    }

    @Override
    public int deleteById(Integer id) {
        return memberCarRepository.deleteById(id);
    }
}
